package com.ly.mpayment.persist.entity;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;


/**
 * PlatFormAccountRecord entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="platformaccountrecord"

)

public class PlatFormAccountRecord  implements java.io.Serializable {


    // Fields

     private String changeuuid;
     private PlatFormAccount platFormAccount;
     private User user;
     private BigDecimal changeamount;
     private Date changetime;
     private String remark;
     private int payType;


    // Constructors

    /** default constructor */
    public PlatFormAccountRecord() {
    }


    /** full constructor */
    public PlatFormAccountRecord(PlatFormAccount platFormAccount, User user, BigDecimal changeamount, Date changetime, String remark) {
        this.platFormAccount = platFormAccount;
        this.user = user;
        this.changeamount = changeamount;
        this.changetime = changetime;
        this.remark = remark;
    }


    // Property accessors
    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid")
    @Column(name="changeuuid", unique=true, nullable=false, length=40)

    public String getChangeuuid() {
        return this.changeuuid;
    }

    public void setChangeuuid(String changeuuid) {
        this.changeuuid = changeuuid;
    }
	@ManyToOne(fetch=FetchType.LAZY)
        @JoinColumn(name="platformuuid")

    public PlatFormAccount getPlatFormAccount() {
        return this.platFormAccount;
    }

    public void setPlatFormAccount(PlatFormAccount platFormAccount) {
        this.platFormAccount = platFormAccount;
    }
	@ManyToOne(fetch=FetchType.LAZY)
        @JoinColumn(name="useruuid")

    public User getUser() {
        return this.user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Column(name="changeamount", precision=28, scale=5)

    public BigDecimal getChangeamount() {
        return this.changeamount;
    }

    public void setChangeamount(BigDecimal changeamount) {
        this.changeamount = changeamount;
    }

    @Column(name="changetime", length=19)

    public Date getChangetime() {
        return this.changetime;
    }

    public void setChangetime(Date changetime) {
        this.changetime = changetime;
    }

    @Column(name="remark", length=1000)

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Column(name="paytype")
	public int getPayType() {
		return payType;
	}


	public void setPayType(int payType) {
		this.payType = payType;
	}




}
